﻿Imports System
Imports System.Collections.Generic
Imports System.Collections.ObjectModel
Imports System.Windows.Controls
Imports System.Windows
Imports System.Windows.Media
Imports System.Windows.Media.Animation
Imports System.Windows.Input
Imports System.Windows.Threading


Public Class Helper

    Private Sub New()

    End Sub

    ''' <summary>
    ''' A node was clicked, make that node the primary node. 
    ''' </summary>
    Public Shared Function GetAnimationDuration(ByVal milliseconds As Double) As TimeSpan
        Return TimeSpan.FromMilliseconds(CDbl(IIf(Keyboard.IsKeyDown(Key.F12), milliseconds * 5, milliseconds)))
    End Function

End Class

